<!--
 * @Author: 大辉 dbstt@qq.com
 * @Date: 2023-03-28 21:22:01
 * @LastEditors: 大辉 dbstt@qq.com
 * @LastEditTime: 2023-04-22 12:21:54
 * @FilePath: /blog/test.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>test</title>
  </head>
  <body>
    <!-- <iframe
      src="./iframe1.html"
      frameborder="0"
      style="width: 100vw; height: 100vh"
    ></iframe> -->
    test
    <script>
      // var minCostClimbingStairs = function (cost) {
      //   const n = cost.length;
      //   const dp = new Array(n + 1);
      //   dp[0] = dp[1] = 0;
      //   for (let i = 2; i <= n; i++) {
      //     dp[i] = Math.min(dp[i - 1] + cost[i - 1], dp[i - 2] + cost[i - 2]);
      //   }
      //   return dp[n];
      // };

      function createObject(obj) {
        function F() {}
        F.prototype = obj;
        return new F();
      }

      var parent = {
        name: "parent",
        sayHello() {
          return "Hello, " + this.name;
        },
      };

      var child = createObject(parent);
      child.name = "child";

      console.log(child.name); // child
      console.log(child.sayHello()); // Hello，child
    </script>
  </body>
</html>

1. 隐藏地址：防止小白复制 2. 响应头添加 X-Frame-Options: SAMEORIGIN :
防止非同源的页面引入 3. 攻击篇：
